﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Input;

namespace Milkify.Data
{
    public class HomeViewData : INotifyPropertyChanged
    {
        public ICommand NavigateToTaskLists { get; set; }
        public ICommand NavigateToTaskList { get; set; }
        public ICommand NavigateToWeekView { get; set; }
        public ICommand NavigateToTags { get; set; }

        private TaskListViewData mToday;
        public TaskListViewData Today
        {
            get { return mToday; }
            set
            {
                if (mToday != value)
                {
                    mToday = value;
                    OnPropertyChanged("Today");
                }
            }
        }

        private TaskListViewData mTomorrow;
        public TaskListViewData Tomorrow
        {
            get { return mTomorrow; }
            set
            {
                if (mTomorrow != value)
                {
                    mTomorrow = value;
                    OnPropertyChanged("Tomorrow");
                }
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        #endregion
    }
}
